package com.lyx.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyx.entity.User;
import com.lyx.mapper.UserMapper;
import com.lyx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Description: TODO
 * @Author 86152
 * @Date 2022/2/12
 * @Version V1.0
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> selectList() {
        return userMapper.selectList(null);
    }

    @Override
    public IPage<User> selectPageByName(Page page, String name) {
        return userMapper.selectPage(page, null);
    }
}
